package com.carserver.service;

import com.carserver.pojo.Goods;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface GoodsDao extends JpaRepository<Goods,Integer> {
    @Query(value = "select * from goods where car_number=?1",nativeQuery = true)
    Goods getNumByCarNumber(String carNumber);
}
